{% load category_display %}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
{% load satchmo.google %}
<head>
    {% block extra-head %}
    {% endblock %}
    <link rel="stylesheet" href="{{media_url}}/css/style.css" />
    <title>{% block title %} {{ shop_name }} {% endblock %}</title>
</head>
<body>
    <div id="container">
    
    <div id="top">
        <h1>{{shop_name}}</h1>
    </div>
    
    <div id="navbar">
    {% block navbar %}
    Breadcrumbs here
    {% endblock %}
    </div>
    
    <div id="leftnav">
        Search<br/>
        <form id="search" action="{% url satchmo_search %}" method="post">
            <input type="text" size="20" name="keywords" id="search_keywords" /><br/>
             <input type="submit" value="Search" />
         </form>
            {% block sidebar %}
            Shop Categories<br/>
            <div id="menu_container">
                {% category_tree %}
            </div>
            {% endblock %}
        </div>
        
        <div id="rightnav">
            Account Information<br/>
            {% if user.is_authenticated %}
                <a href="{% url satchmo_account_info %}">Account Details</a> <br/>
                <a href="{% url satchmo_logout %}">Logout</a><br/>
            {% else %}
                <a href="{% url satchmo_login %}">Login</a> <br/>
            {% endif %}
            
            {% load satchmo.currency_filter %}
            <a href="{% url satchmo_cart %}">Cart
            
            {% if cart_count %}
                ({{cart_count}} - {{cart.total|currency}})</a>
                <br/><a href="{% url satchmo_checkout-step1 %}">Check out</a>
            {% endif %}
            
            <p><a href="{% url satchmo_contact %}">Contact Us</a></p>
            
        </div>
        
        <div id="content">
            {% block content %}{% endblock %}
        </div>
    
        <div id="footer">
            Powered by <a href="http://www.satchmoproject.com">Satchmo</a>
        </div>
        
    </div>
    {% block google-tracker %}
    {% if enable_google %}
        {% show_tracker %}
    {% endif %}
    {% endblock %}
</body>
</html>